package team.seekers.oj.homework.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import team.seekers.oj.common.entity.BaseDTO;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class HomeworkProblemListDTO extends BaseDTO {

    private Long problemId;

    private Integer problemOrder; // 在整个提单中的位置

    private String problemCode;

    private String problemTitle;

    private Integer problemWeight;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long problemDescriptionId;

    private String problemColor;

    // -------------------------------- 其他字段，如在该比赛内的过题人数

    private int acceptNum;

    private int submitNum;

    private Integer judgeResult; // null 表示没交过该题

    private Integer judgeScore;  // null 表示没交过该题

}